const router = require('koa-router')();

const about = require('./web/about');
const news = require('./web/news');

// domain index
router.get('/', async (ctx) => {
    // throw 'test error';
    await ctx.render('web/index');
});

router.use('/about', about);
router.use('/news',news);

module.exports = router.routes();